package com.distributedDataBase.controller;

import com.distributedDataBase.pojo.DateDemo;
import com.distributedDataBase.pojo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("params")
public class ParamController {

    @GetMapping("date")
    public Result date(DateDemo dateDemo){
        //TODO... 控制台输出一下这个日志
        System.out.println(dateDemo);

        //返回json到客户端
        return new Result("200","Handler Date Type",dateDemo);
    }

}
